package com.elc365.model;


import java.io.Serializable;

import org.json.JSONObject;


public class BranchInfo implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private String BranchID = null;
	private String BranchName = null;
	private String Lon;//
	private String Lat;//
	private String Address;
	private String PhoneNum;
	public String getBranchID() {
		return BranchID;
	}
	public void setBranchID(String branchID) {
		BranchID = branchID;
	}
	public String getBranchName() {
		return BranchName;
	}
	public void setBranchName(String branchName) {
		BranchName = branchName;
	}
	public String getLon() {
		return Lon;
	}
	public void setLon(String lon) {
		Lon = lon;
	}
	public String getLat() {
		return Lat;
	}
	public void setLat(String lat) {
		Lat = lat;
	}
	public String getAddress() {
		return Address;
	}
	public void setAddress(String address) {
		Address = address;
	}
	public String getPhoneNum() {
		return PhoneNum;
	}
	public void setPhoneNum(String phoneNum) {
		PhoneNum = phoneNum;
	}
	
	public BranchInfo(JSONObject jo) {
		if(jo == null){
			return ;
		}
		BranchID = jo.optString("branchID");
		BranchName = jo.optString("name");
		Lon = jo.optString("longitude");
		Lat = jo.optString("latitude");
		Address = jo.optString("address");
		PhoneNum = jo.optString("phone");
	}
	
	
	
}